package demo6;
import demo6.Point;
class Point{	
	double x,y,z;
	Point(double x,double y,double z){
		this.x=x;
		this.y=y;
		this.z=z;
	}
}
public class TestPoint {
	public static void main(String[] args) {
		Point point1=new Point(1.0,1.0,1.0);
		Point point2=new Point(1.0,2.0,2.0);
		double Distance;
		Distance=Math.sqrt((point1.x-point2.x)*(point1.x-point2.x)
				+(point1.y-point2.y)*(point1.y-point2.y)
				+(point1.z-point2.z)*(point1.z-point2.z));
		System.out.println(Distance);
	}
}